<extend name="template/base_index" />


<block name="area_header">

    <link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
    <script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>

</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <!-- 过滤\查询按钮 -->
            <div class="filter-controls">
                <!-- 日期查询 -->
                <form action="{:U('Admin/Project/search_project')}" method="post" class="form-inline">
                    <div class="form-group">
                        <div class="input-group">
                            <div class="input-group-addon">
                                项目标题
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" name="name" id="enddatetime" class="form-control input-short" value="{$name}" />
                        </div>
                    </div>
                    <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search"></i>{:L('BTN_SEARCH')}</button>
                </form>
            </div>

            <table class="table table-striped table table-hover  table-condensed">
                <thead>
                <tr>
                    <th>
                        <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
                    </th>
                    <th style="width: 240px;">
                        ID
                    </th>
                    <th>
                        项目名称
                    </th>
                    <th>
                        创建时间
                    </th>
                    <th>
                        来源
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>
                <empty name="list">
                    <tr>
                        <td colspan="7" class="text-center">{:L('NO_DATA')}</td>
                    </tr>
                    <else/>
                    <volist name="list" id="vo">
                        <tr>
                            <td>
                                <input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem" /></td>
                            <td>
                                {$vo.id}
                            </td>
                            <td>
                                {$vo.title}
                            </td>
                            <td>
                                {$vo.create_time|date='Y-m-d h:i:s',###}
                            </td>
                            <td>
                                {$vo.come_from}
                            </td>
                            <td>
                                <a href="{:U('Project/look',array('id'=>$vo['id']))}" target="_blank" class="btn btn-sm btn-primary"><i class="fa fa-eye"></i>查看</a>
                            </td>
                        </tr>

                    </volist>
                </empty>
                </tbody>
            </table>
            <center><div style="display:inline-block">{$show}</div></center>
        </div>

    </div>
    <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

</block>